package cn.charmaine.org.service.impl;

import cn.charmaine.org.domain.Logininfo;
import cn.charmaine.org.mapper.LogininfoMapper;
import cn.charmaine.org.service.ILogininfoService;
import cn.charmaine.basic.base.service.impl.BaseServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author xmy
 * @since 2022-07-09
 */
@Service
public class LogininfoServiceImpl extends BaseServiceImpl<Logininfo> implements ILogininfoService {

    @Autowired
    private LogininfoMapper logininfoMapper;
    @Override
    public Logininfo queryByAccountAndType(String account, Integer type) {
        return logininfoMapper.selectByAccountAndType(account,type);
    }

    @Override
    public Logininfo queryByUserId(Long userId) {
        return logininfoMapper.selectByUserId(userId);
    }

}
